
#ifndef _IGJK_CONVEX_CAST_H_
#define _IGJK_CONVEX_CAST_H_

#include <BShape>
#include "IAlgorithm.h"
#include "IVoronoiSimplexSolver.h"

using namespace BWE;

class IGjkConvexCast
{
public:
	IGjkConvexCast(BShape* convexA, BShape* convexB, IVoronoiSimplexSolver* simplexSolver);

	bool calcTimeOfImpact(const BMatrix& fromA, const BMatrix& toA, const BMatrix& fromB, const BMatrix& toB, CastResult& caseResult);

private:
	IVoronoiSimplexSolver* _simplexSolver;
	BShape* _shapeA;
	BShape* _shapeB;

};

#endif
